package com.ruoyi.loan.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.loan.dto.SelectPoorApplyDto;
import com.ruoyi.loan.entity.PoorApplyRecord;
import com.ruoyi.loan.entity.User;
import com.ruoyi.loan.po.SelectPoorApplyPo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Author: 廖振辉
 * Date: 2022/4/5
 * Description:
 */
public interface PoorApplyMapper extends BaseMapper<PoorApplyRecord> {

    /**
     * 获取贫困生申请列表
     *
     * @param applyDto 参数
     * @return 申请列表
     */
    List<SelectPoorApplyPo> getPoorApplyList(SelectPoorApplyDto applyDto);

    PoorApplyRecord selectByUserIdAndYear(@Param("userId") Integer userId, @Param("year") Integer year);
}
